import axios from "axios";

export const SkyTableMixins = {
    data() {
        return {
            tableData: [],
            columns: []
        };
    },
    mounted() {
        this.loadDefaultTableConfig()
    },
    methods: {
        getTableColumns() {

        },
        // 加载默认的表列表
        loadDefaultTableConfig() {
            axios({
                method: 'POST',
                url: 'http://localhost:9090/sky/table/config/loadConfig',
                data: {}
            }).then(res => {
                console.log(res)
                // 更新字段
                this.getTableColumns(res)
            }).catch(error => {

            })
        }
    }
}
